package com.demo.controller.from;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ApiModel("订单创建")
public class MovieOrderFrom {

    /**
     * 购票电话号码
     */
    @NotNull
    @Pattern(regexp = "1[3|4|5|7|8][0-9]\\d{8}")
    @ApiModelProperty("购票电话号码")
    private String userPhone;

    /**
     * 购票电话号码
     */
    @NotNull
    @ApiModelProperty("验证码")
    private String code;

    /**
     * 票务id集合
     */
    @Size(min = 1,max = 100)
    @ApiModelProperty("票务id集合")
    private List<Integer> ticketingIds;

}
